<!doctype html>
<html lang="en">
<head>
  <title>Image Upload</title>
</head>
<body>
  <h1>Upload new Image</h1>
  {% if message %}
    <p>{{ message }}</p>
  {% endif %}
  <form method="post" action="/" enctype="multipart/form-data">
    <input type="file" name="file">
    <input type="submit" value="Upload">
  </form>
  {% if filename %}
    <h2>Original Image:</h2>
    <img src="{{ url_for('display_image', filename=filename) }}" alt="Original image">
    <h2>Mask Image:</h2>
    <img src="{{ url_for('display_image', filename=mask_filename) }}" alt="Mask image">
  {% endif %}
</body>
</html>
